Enhanced Automated Capture of Invoices into an Electronic Payment System

ABSTRACT

The recognition of invoices for multiple issuers and multiple recipients is automated. In one approach, many invoices are received. The received invoices are compared to a database of distinguishing features. These distinguishing features are for known templates of invoices from different issuers. Templates are selected for the invoices based on the comparisons to the distinguishing features. This also identifies the issuers for the invoices. Data is extracted from the invoices based on the selected templates. In this way, invoice capture can be automated.

CROSS-REFERENCE TO RELATED APPLICATION

This application claims priority under 35 U.S.C. § 119(e) to U.S. Provisional Patent Application Ser. No. 61/025,255, “System and Method for Enhanced Capture of Invoices into an Electronic Payment System,” filed Jan. 31, 2008. The subject matter of all of the foregoing is incorporated herein by reference in its entirety.

BACKGROUND OF THE INVENTION

1. Field of the Invention

This invention relates generally to automated computer processing of invoices.

2. Description of the Related Art

For several years companies have been trying to move transactions into an electronic system. Large businesses have the resources and scale to justify the installation of new electronic systems. However, for a large segment of small and medium size enterprises (SMEs), such attempts have not fared well, because it is not cost effective for SMEs to install a dedicated system and there is no standardized transaction system to allow the sharing of costs among many different businesses. For example, each bank offers its own web site payment option, and companies such as Quicken offer either online or check printing or manual check writing as payment methods. However, invoice entry is entirely manual. As a result, it is still the general practice for businesses to send paper invoices to customers, which the customers then process manually.

What is needed are approaches that allow the integration of paper and/or electronic document invoices into an automated system in an enhanced way such that transactions do not require as much manual labor (such as manual input of invoices) as they currently do. What is further desired is that these transactions may eventually be moved into a fully electronic transaction system.

SUMMARY OF THE INVENTION

The present invention overcomes the limitations of the prior art by automating the recognition of invoices for multiple issuers and multiple recipients. In one approach, many invoices are received. The received invoices are compared to a database of distinguishing features. These distinguishing features are for known templates of invoices from different issuers. Templates are selected for the invoices based on the comparisons to the distinguishing features. This also identifies the issuers for the invoices. Data is extracted from the invoices based on the selected templates. In this way, invoice capture (and settlement) can be automated.

In another aspect of the invention, a community of recipients helps to refine the overall process. For example, the community of recipients may provide input concerning the distinguishing features for templates, and this input may be used to define or refine the distinguishing features. The community may also provide input concerning the templates themselves (e.g., the locations of various fields of data), and this input may be used to define or refine the templates. A more organized community process may even be used to regulate the input provided by the community.

Various techniques can be used to distinguish invoices from each other, and to extract data from recognized invoices. Various techniques may also be used to develop and refine the distinguishing features as well as the templates.

Other aspects of the invention include program code, systems and devices corresponding to the methods described above.

BRIEF DESCRIPTION OF THE DRAWINGS

The invention has other advantages and features which will be more readily apparent from the following detailed description of the invention and the appended claims, when taken in conjunction with the accompanying drawings, in which:

FIG. 1 is a block diagram of an exemplary system 100 according to an aspect of the invention.

FIG. 2 are diagrams of exemplary invoices.

FIG. 3 is a flow diagram of an exemplary method for processing invoices according to an aspect of the invention.

FIG. 4 is a flow diagram of an exemplary method for processing unrecognized invoices according to an aspect of the invention.

The figures depict embodiments of the present invention for purposes of illustration only. One skilled in the art will readily recognize from the following discussion that alternative embodiments of the structures and methods illustrated herein may be employed without departing from the principles of the invention described herein.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

FIG. 1 shows an overview of an exemplary system 100 according to an aspect of the invention. An electronic service provider 110, such as eFax Services, is connected to the Internet 101. Other intranet or networks could be used instead of the Internet. Also connected to electronic service provider 110 are multiple fax lines 111 a-n for receiving faxed invoices. Customer sites 121 a-n (of which, for clarity and simplicity, only 121 x is shown) connect to the Internet 101 via connections 120 a-n. Corporate site 105 of an operator of this exemplary system is represented here by a server 102, a storage system 103, and software 104 installed on the server 102. The actual architecture of such a system may, and in most cases probably will, comprise many servers, multiple storage systems and/or hard drives, and multiple instances of software. All these possible components are represented here by the single instances of the components of site 105.

FIG. 2 shows typical invoices as received, represented here as exemplary invoices 200A and 200B. These invoices are issued by one party (the issuer) to another party (the recipient). Invoices 200A and 200B contain the following data, although with a slightly different layout: issuer logo 201, issuer name and address 202, recipient address 203, line items 204 and total amount due 205. Other additional data such as terms, due date, etc., are not shown in FIG. 2, but such data are customarily included on typical invoices.

One aspect of the invention includes approaches for recognizing an invoice, for example identifying the issuer of the invoice and/or recognizing the layout of the invoice. Invoices can be recognized by comparing them to a database of distinguishing features. For example, invoices might be recognized based on the logo of the issuer, name and/or address of the issuer, or other data or signature features that are unique to an issuer. Once an invoice is recognized, a corresponding template can be applied to extract the relevant data from the recognized invoice.

There are various modes by which an invoice may be entered into the system and various media on which the invoice may be received. For example, the recipient of a paper invoice could fax it to a dedicated fax number for that recipient's account, such as, for example, any of fax numbers 111 a-n shown in FIG. 1. Alternately, the recipient of the invoice could instruct any entity issuing invoices to them to fax the invoices directly to said account's dedicated fax number. In yet another case, an invoice recipient may have a customized email address residing on or connected to server 102, to which invoices may be emailed with attached files of any of various popular word processing or accounting or image capture programs, such as, for example, MS Word or Adobe Acrobat. In any case such a file may be converted into an image file showing the image of the invoice. In the case of a Word file, depending on the complexity of the format, direct parsing may be applied. Alternately, the file may be printed to an Adobe Acrobat .portable document file (.pdf) file and then processed as an image.

Once received, invoices can be recognized using many different types of distinguishing features besides those discussed above. Additional examples include but are not limited to black/white histograms, color histograms, sectional signatures and sectional histograms. OCR (optical character recognition) can also be used as part of the recognition process. It can be applied to just the header, to the entire invoice or to any part of the invoice. The result of the OCR can be used as the basis for recognizing an invoice. Alternately, OCR can be applied after an invoice has been recognized, in order to extract data from the invoice. Other examples of distinguishing features include metadata (e.g., fax number, issuer e-mail address, subject line, pdf- or Word-metadata, keywords, barcode), number of pages, OFX download, and XML fields or tags. Other suitable structured files with a certificate may be used in other cases.

FIG. 3 shows an exemplary process 300 according to the invention for processing a typical invoice, such as invoice 200 or invoice 210. The invoice image is received 310, for example by one of the ways described above. It may be emailed or uploaded or transferred by any of several electronic means from the site of service provider 110 to the site of system operator 105. The system 105 compares 320 the invoice to a database in storage system 103 that contains distinguishing features for known invoices. For example, the system 105 may search for a matching logo in a library of known issuer logos or search for a matching signature in a library of known issuer signatures. In some cases, other distinguishing features, for example the originating fax number or the email origination address, may be used in addition to or in place of the logo pattern and signature to recognize the invoice.

At step 380, the process branches. If no match is found (no branch), the image is sent 390 to a work file, in which all the unprocessed documents are stored. Treatment of the documents in this work file is explained below, in the description of FIG. 4.

If a match is found for the logo pattern or signature (yes branch), this identifies 330 the issuer. A corresponding template for the recognized invoice is also retrieved 340 from storage system 103. The template includes instructions for extracting data from the invoice, for example it may define fields identifying where and/or in what format on the invoice certain data is expected to be located. In some cases, an issuer may have more than one template. For example, it may have different templates for personal users and for business customers. As another example, the issuer may have different templates for single-page and multi-page invoices, or may simply change the format of its invoice over time or by geographic region. Accordingly, the system 105 may use more refined decision-making processes to select the correct template for a particular invoice.

Data is extracted 350 from the invoice based on the selected template, using optical character recognition (OCR) and/or other suitable means. In some cases the document may be OCR'd even before it is received 310, for example, by using .pdf files for which the software suite by Adobe and other tools by other companies may provide built-in OCR capabilities. The image then may be used to identify the issuer. In other cases, however, full recognition is done in step 350 as part of the data extraction. The information extracted in step 350 is preferably stored 360 in a database that also resides in storage system 103.

In some implementations, once an invoice has been recognized, data may be automatically extracted from the invoice (e.g., as identified by fields in a template). In another approach, invoices may be grouped together based on their similarity. Data extracted from certain locations in one invoice may be extracted from similar locations in other invoices in the group. Previously discovered data patterns may be reused on similar invoices. Data can also be manually extracted. Different pattern recognition engines, expert systems, rule-based engines and other approaches may also be used to extract data from invoices.

Processed invoices can also be used to check or refine the templates for an issuer. Differences between invoices for the same issuer or deviations from past norms can also be used to flag potential problems, as well as to request human review.

FIG. 4 shows an exemplary process 400 according to the invention for processing unrecognized invoices that were previously stored in a work file in step 390 of FIG. 3. An invoice is retrieved 410 from the work file, which resides in storage system 103. The invoice is presented for manual viewing 410 by an operator. In step 420, the process branches. If the operator determines that the invoice is a document from a known issuer (yes branch) but, for whatever reason, the logo pattern/signature recognition has not worked (for example, a coffee stain on the logo may have made the logo unreadable to the automated recognition system), the process moves to step 430. The operator selects 430 a matching template and sends 440 the invoice back to the recognition process 300 (e.g., to data extraction step 350).

If, however, in step 420, the operator determines that the invoice cannot be matched with a known template (no branch), the operator creates 450 a new template. This new template may be created completely new or it may be created by modifying a suitable existing template. The new template, along with its issuer information and the invoice, is stored 460 in storage system 103. In step 470, a recognition simulation is performed to verify that the new template works correctly. If, in step 480, the template simulation works correctly (yes branch), the invoice is sent 440 to the recognition process 300 described above. If, however, the simulation does not work correctly (no branch), the template may be manually adjusted 490. The template editor may highlight the section that created problems. For example, a field for OCR may be too narrow or too wide. If the field is too wide, for example, the system may attempt to interpret a part of the logo as a part of the address. In the case of a field that is too narrow, some characters may be cut off.

Another aspect of the invention is cross-organizational learning. For example, if a user who works at Customer A identifies an invoice as being from Vendor 1, and the system can then identify other signature items (image, “from” address, etc.), then the system may be able to use those other signature items to select the correct template for the invoice, and use that template to find the correct data in certain sections of the invoice. Additionally, if a same format invoice from this same Vendor 1 is sent to a second Customer B, then the system can recognize from the signature information that the invoice is from Vendor 1 and apply the template to the invoice to extract the correct data.

One advantage of the approach described above is that the capture of invoices can be made economical for SMEs. The number of invoices processed can be aggregated over a large number of SMEs, thus achieving economies of scale that can be shared by the businesses. In addition, although any one SME may only receive a few invoices from any particular issuer, the community of SMEs in the aggregate may receive a large number of invoices from that issuer. This then makes it cost efficient to develop templates or other processes to handle those invoices, whereas it would not be cost efficient for each SME to do so individually. The system of FIG. 1 can be implemented without significant additional investment by either the issuers or the recipients. The cost of system 105 is shared by all users and not borne entirely by one user. The recipients can send invoices to the system 105 using conventional means, such as fax and email. The invoices between issuers and recipients can be settled using conventional means. In addition, as described above with the example using Customers A and B, and Vendor 1, information learned from processing one recipient's invoices can be used to improve the overall process for all recipients.

In fact, in one approach, the community of recipients can themselves improve the process. For example, the community can provide input about distinguishing features. Various recipients and/or issuers may suggest different features for recognizing invoices. There may even be a community process for determining preferred features for distinguishing invoices. A similar process can be used to determine templates, including determining fields in templates.

Another aspect of community is that different recipients can exchange their experiences of dealing with issuers. Many recipients may be in a similar situation with respect to issuers. Another beneficial aspect of the community is that SMEs are likely to deal with “small” issuers. There will be a very large number of small issuers (approximately 25 million in the US), but each one issues invoices to only a small number of customers (typically, 20-30). While it is not economical for a centralized identification process to be applied to this set of issuers, it is economical to let the recipients themselves help identify the issuers and, in the aggregate, create a comprehensive catalog of the issuers.

It is clear that many modifications and variations of this embodiment may be made by one skilled in the art without departing from the spirit of the novel art of this disclosure. These modifications and variations do not depart from the broader spirit and scope of the invention, and the examples cited here are to be regarded in an illustrative rather than a restrictive sense.

In alternate embodiments, the invention is implemented in computer hardware, firmware, software, and/or combinations thereof. Apparatus of the invention can be implemented in a computer program product tangibly embodied in a machine-readable storage device for execution by a programmable processor; and method steps of the invention can be performed by a programmable processor executing a program of instructions to perform functions of the invention by operating on input data and generating output. The invention can be implemented advantageously in one or more computer programs that are executable on a programmable system including at least one programmable processor coupled to receive data and instructions from, and to transmit data and instructions to, a data storage system, at least one input device, and at least one output device. Each computer program can be implemented in a high-level procedural or object-oriented programming language, or in assembly or machine language if desired; and in any case, the language can be a compiled or interpreted language. Suitable processors include, by way of example, both general and special purpose microprocessors. Generally, a processor will receive instructions and data from a read-only memory and/or a random access memory. Generally, a computer will include one or more mass storage devices for storing data files; such devices include magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and optical disks. Storage devices suitable for tangibly embodying computer program instructions and data include all forms of non-volatile memory, including by way of example semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM disks. Any of the foregoing can be supplemented by, or incorporated in, ASICs (application-specific integrated circuits) and other forms of hardware. 

1. A computer-implemented method for automatically capturing invoices issued by a plurality of different issuers to a plurality of different recipients, the method comprising: receiving invoices issued by a plurality of different issuers and issued to a plurality of different recipients; comparing the invoices to distinguishing features for templates of invoices from different issuers; selecting templates for the invoices based on the comparisons to distinguishing features, each template identified with an issuer; and extracting data from the invoices based on the selected templates.
 2. The computer-implemented method of claim 1 further comprising: receiving input from a community of recipients concerning the distinguishing features for templates; and determining the distinguishing features for templates based at least in part on the community input.
 3. The computer-implemented method of claim 1 further comprising: receiving input from a community of recipients concerning the templates; and determining the templates based at least in part on the community input.
 4. The computer-implemented method of claim 1 wherein the step of receiving invoices comprises receiving invoices on different media.
 5. The computer-implemented method of claim 4 wherein the distinguishing features depend on the media of the invoice.
 6. The computer-implemented method of claim 1 wherein the distinguishing features include logos of issuers.
 7. The computer-implemented method of claim 1 wherein the distinguishing features include issuers' names and/or addresses.
 8. The computer-implemented method of claim 1 wherein the distinguishing features include data unique to issuers.
 9. The computer-implemented method of claim 1 wherein the distinguishing features include black and white histograms.
 10. The computer-implemented method of claim 1 wherein the distinguishing features include color histograms.
 11. The computer-implemented method of claim 1 wherein the distinguishing features include sectional signatures.
 12. The computer-implemented method of claim 1 wherein the distinguishing features include sectional histograms.
 13. The computer-implemented method of claim 1 wherein the step of comparing the invoices to distinguishing features includes: performing optical character recognition (OCR) on the invoices; and comparing the OCR'd invoices to the distinguishing features.
 14. The computer-implemented method of claim 1 wherein the distinguishing features include metadata in the invoices.
 15. The computer-implemented method of claim 1 wherein the templates include fields and the step of extracting data from the invoices comprises extracting data from the invoices based on the fields of the selected templates.
 16. A computer-readable medium on which is encoded program code, the program code comprising: program code for receiving invoices issued by a plurality of different issuers and issued to a plurality of different recipients; program code for comparing the invoices to distinguishing features for templates of invoices from different issuers; program code for selecting templates for the invoices based on the comparisons to distinguishing features, each template identified with an issuer; and program code for extracting data from the invoices based on the selected templates.
 17. A computer system for automatically capturing invoices issued by a plurality of different issuers to a plurality of different recipients, the computer system comprising: means for receiving invoices issued by a plurality of different issuers and issued to a plurality of different recipients; means for comparing the invoices to distinguishing features for templates of invoices from different issuers; means for selecting templates for the invoices based on the comparisons to distinguishing features, each template identified with an issuer; and means for extracting data from the invoices based on the selected templates. 